package com.sun.springboot_mq.hello.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**接受者
 * @author shkstart
 * @create 2021-10-24 18:05
 */
@Component
@RabbitListener(queues = "hello")
public class HelloReceiver2 {
    @RabbitHandler
    public void process(String hello){
        System.out.println("接受者Receiver2  : " + hello);
    }
}
